import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'

import 'codemirror/lib/codemirror.css';

import echarts from 'echarts' //引入echarts
Vue.prototype.$echarts = echarts  //挂载在全局

import axios from 'axios'
Vue.prototype.$axios = axios;


Vue.config.productionTip = false

// 自定义过滤器
Vue.filter('transformDateFormat', function (val) {
  return formatDate(val)
})

Vue.use(ElementUI);
import Contextmenu from 'vue-contextmenujs'
Vue.use(Contextmenu);//自定义右键菜单，暂时没用上
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
